package com.css.zfzx.fxpg.modules.citycounty.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.citycounty.repository.entity.FxCityCountyEntity;
import com.css.zfzx.fxpg.modules.citycounty.viewobjects.FxCityCountyQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-26
 */

public interface FxCityCountyService {

    JSONObject queryFxCityCountys(FxCityCountyQueryParams queryParams, int curPage, int pageSize);

    FxCityCountyEntity getFxCityCounty(String id);

    FxCityCountyEntity saveFxCityCounty(FxCityCountyEntity fxCityCounty);

    FxCityCountyEntity updateFxCityCounty(FxCityCountyEntity fxCityCounty);

    void deleteFxCityCountys(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String importExcel(MultipartFile file);

    String exportExcel(FxCityCountyQueryParams queryParams, HttpServletResponse response);

    List<FxCityCountyEntity> getFxCityCountys(FxCityCountyQueryParams queryParams);

    String judgeRational(FxCityCountyEntity fxCityCounty);

    List<String> getCityCountyNames();
}
